package cn.tedu.file;

import java.io.*;

public class Test6_in_TryCatch {
    public static void main(String[] args) {
        method();
    }
    public static void method()  {
        InputStream in3 = null;
        try{
             in3 = new BufferedInputStream(new FileInputStream("F:\\天天向上\\1.txt") );
            int b=0;
            while((b = in3.read())!=-1){
                System.out.println(b);
            }

        }catch(Exception E){
            E.printStackTrace();
        }finally{
            try {
                in3.close();
            } catch (IOException e) {
                e.printStackTrace();
            }

        }

    }
}
